<?php

namespace app\api\controller\ai;

use app\common\controller\BaseController;
use app\common\service\ai\MemberService;
use app\common\service\ai\OrderService;
use hg\apidoc\annotation as Apidoc;

/**
 * @Apidoc\Title("会员管理")
 * @Apidoc\Group("ai")
 * @Apidoc\Sort("300")
 */
class Member extends BaseController {

    /**
     * @Apidoc\Title("开户")
     * @Apidoc\Method("POST")
     * @Apidoc\Param("sale_price", type="int", require=true, desc="开户费")
     * @Apidoc\Returned("order_no", type="string", require=true, desc="订单号")
     */
    public function openAccount() {
//        return MemberService::openAccount($this->data);
        OrderService::submit($this->data, 0, 0, 1);
    }

}
